package org.example.xss_resist.controller;

import org.example.xss_resist.entity.request.UserLoginRequest;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController("login")
public class UserLoginController {
    @PostMapping("/test1")
//    public UserLoginRequest login(@RequestBody @Validated UserLoginRequest userLoginRequest) {
    public UserLoginRequest login(@RequestBody UserLoginRequest userLoginRequest) {
        return userLoginRequest;
    }
}
